package com.botann.projects.base;


import com.botann.projects.constants.Code;

/**
 * Created by liushanguo on 2017/5/22.
 */
public class SGRuntimeException extends RuntimeException {

    private Integer errorCode = Code.PARAMETER_WRONG;

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }


    public SGRuntimeException(){
        super();
    }

    public SGRuntimeException(String message) {
        super(message);
    }

    public SGRuntimeException(int errorCode,String message){
        super(message);
        this.errorCode = errorCode;
    }


}
